package com.ymttest.utils.compare.parameter.test;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class ObjectProxy implements InvocationHandler{
	private Object subject ;
	
	public ObjectProxy(Object subject){
		this.subject = subject;
	}
		
	
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		System.out.println("start");
		System.out.println(proxy.getClass().getName());
		
		method.invoke(subject, args);
		
		System.out.println("end");
		
		
		return null;
	}

}
